package com.company.test.jdkProxy;

import java.lang.reflect.Proxy;

public class JdkProxy {

    public static Object getProxy(Object target){
        return Proxy.newProxyInstance(target.getClass().getClassLoader(),target.getClass().getInterfaces(),new MyInvocationHandler(target));
    }
}
